package com.itcast.java.product.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * spu信息实体类
 *
 * @author xiaobai
 * @date 2021-06-27 19:31:58
 */
@Data
@TableName("pms_spu_info")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "PmsSpuInfoEntity对象", description = "spu信息")
public class PmsSpuInfoEntity implements Serializable{

private static final long serialVersionUID=1L;

        @ApiModelProperty(value = "商品id")
                @TableId(value = "id", type = IdType.AUTO)
                private Long id;

        @ApiModelProperty(value = "商品名称")
    @TableField("spu_name")
        private String spuName;

        @ApiModelProperty(value = "商品描述")
    @TableField("spu_description")
        private String spuDescription;

        @ApiModelProperty(value = "所属分类id")
    @TableField("catalog_id")
        private Long catalogId;

        @ApiModelProperty(value = "品牌id")
    @TableField("brand_id")
        private Long brandId;

    @TableField("weight")
        private BigDecimal weight;

        @ApiModelProperty(value = "上架状态[0 - 下架，1 - 上架]")
    @TableField("publish_status")
        private Integer publishStatus;

    @TableField("create_time")
        private Date createTime;

    @TableField("update_time")
        private Date updateTime;

        }